// api/user.js

import { get, post,put,deletes } from '@/utils/request.js'; // 引入封装好的请求方法
import { HTTP_REQUEST_URL } from '@/config/app.js';


// 获取商家分类
export const getMechantCate = () => {
  return get('/api/merchant_cate'); 
};

//商家列表
export const getMechantList = (param) => {
  return get('/api/merchant_list',param); 
};


//商家详情
export const getMechantDetail = (id) => {
  return get('/api/merchant_detail',{id:id}); 
};

//开局
export const startGroup = (param) => {
  return post('/api/create_order',param); 
};

//组局详情
export const groupDetail = (order_id) => {
  return get('/api/order_detail',{order_id : order_id}); 
};

//加入组局
export const joinGroup = (order_id) => {
  return post('/api/join_group',{order_id : order_id}); 
};

//组局列表
export const getGroupList = (param) => {
  return get('/api/group_list',param); 
};

//组局列表
export const merchantApply = (param) => {
  return post('/api/merchant_apply',param); 
};

